function [ ] = plotDeformation( mesh, rx, ry, rz, u )
%PLOTDEFORMATION Summary of this function goes here
%   Detailed explanation goes here

nVer = size(mesh.v, 1);

boundary = [mesh.v(:, 1), mesh.v(:, 2), mesh.v(:, 3)];

figure;

trisurf(mesh.f,boundary(:,1),boundary(:,2),boundary(:,3), 'facecolor','none'); 

view(2);

axis ( [ -1, 2, -1, 2, -1, 2] );
% caxis( [ 0.85, 1.15] );
axis square;

colorbar;

figure;

trisurf(convhull(rx, ry, rz), rx+u(:,1), ry+u(:,2), rz+u(:,3), 'facecolor','none'); 
% trisurf(convhull(rx, ry, rz), rx, ry, rz, 'facecolor','none'); 

view(2);

axis ( [ -1, 2, -1, 2, -1, 2] );
% caxis( [ 0.85, 1.15] );
axis square;

colorbar;

end

